import java.util.Scanner;


public class InvoerScanner {
	public Scanner in;
	
	public InvoerScanner() {
		in = new Scanner(System.in);
	}
	
	public String getString(String command) {
		System.out.printf(command);
		return in.nextLine();
	}
	
	public int getInt(String command) {
		try {
			return Integer.parseInt(getString(command));
		} catch(NumberFormatException nfe) {
			String failCmd = "Geen nummer! Probeer het nogmaals... \n" + command;
			return getInt(failCmd);
		}
	}
}
